@echo off


if "%MSBUILDPATH%"=="" (
    set MSBUILDPATH=%SystemRoot%\microsoft.net\framework\v4.0.30319
)

set builder="%MSBUILDPATH%\msbuild.exe"

echo Building Clean All...

call %builder% .\CleanAll.xml 
if errorlevel 1 (
   goto exit
)

rmdir /Q W:\References\ALP\

:exit

if errorlevel 1 (
    echo Build failed
)